home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Processes / Launch Me / LaunchMe.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-15  |  1.2 KB  |  40 lines  |  [TEXT/CWIE]

  1. /*
  2. **    Apple Macintosh Developer Technical Support
  3. **
  4. **    Header for routines demonstrating how to launch an application without
  5. **    a currently running application to actually call LaunchApplication().
  6. **
  7. **    by Mark Cookson, Apple Developer Technical Support
  8. **
  9. **    File:    LaunchMe.h
  10. **
  11. **    Copyright ©1996 Apple Computer, Inc.
  12. **    All rights reserved.
  13. **
  14. **    You may incorporate this sample code into your applications without
  15. **    restriction, though the sample code has been provided "AS IS" and the
  16. **    responsibility for its operation is 100% yours.  However, what you are
  17. **    not permitted to do is to redistribute the source as "Apple Sample
  18. **    Code" after having made changes. If you're going to re-distribute the
  19. **    source, we require that you make it clear in the source that the code
  20. **    was descended from Apple Sample Code, but that you've made changes.
  21. */
  22.  
  23. #include <Fonts.h>
  24. #include <Notification.h>
  25. #include <Processes.h>
  26. #include <Resources.h>
  27. #include <StandardFile.h>
  28. #include <Timer.h>
  29.  
  30. #define kDelay 1000        // 1 second == 1000 milliseconds
  31.  
  32. struct MyDelayedLaunchRec {
  33.     TMTask                    theTask;
  34.     StandardFileReply        theSFReply;
  35.     NMRec                    NMProcRec;
  36.     LaunchParamBlockRec        launchMe;
  37. };
  38.  
  39. typedef struct MyDelayedLaunchRec MyDelayedLaunchRec, *MyDelayedLaunchPtr;
  40.